package net.rlair.sbdemo.controller;

import net.rlair.sbdemo.dao.jpa.YangbairongJpaUserRepository;
import net.rlair.sbdemo.dao.mybatis.bootmapper.YangbairongMyBatisUserDao;
import net.rlair.sbdemo.entity.User;
import net.rlair.sbdemo.service.TxNestedZhaozichen;
import org.springframework.data.domain.PageImpl;
import org.springframework.data.domain.PageRequest;
import org.springframework.data.domain.Pageable;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;
import java.util.Date;

/**
 * @author lixudong
 */
@Controller
@RequestMapping("zhaozicheng")
public class ZhaozichenController {

    @Resource
    private TxNestedZhaozichen txNestedZhaozichen;

    @RequestMapping("addUser")
    @ResponseBody
    public Object save(@PathVariable final String id) {
        txNestedZhaozichen.batchAddUsers();

        return "保存成功";
    }


}